<if condition="IS_AJAX">
      <volist name="list" id="vo">
          <div class="panel">
            <div class="panel-heading">
              <div class="panel-title"> 
              	<a class="accordion-toggle collapsed" data-parent="#accordion" data-toggle="collapse" href="#collapse{$vo.id}">
                	<div class="pull-right text-success">{$i}</div>{$vo.name} 
                </a> 
              </div>
            </div>
            <div class="panel-collapse collapse" id="collapse{$vo.id}" style="height: 0;">
              <div class="panel-body ui-table-split" style="margin-bottom:10px;" >
                <div><span class="glyphicon glyphicon-flag text-primary" aria-hidden="true"><strong>部 门：</strong></span><font class="title{$key}">{$vo.groupname}</font></div>
                <div>
                	<span class="glyphicon glyphicon-time text-primary" aria-hidden="true"><strong>职 员：</strong></span>
                    <font class="date{$key}"><a href="{:U('Integral_log/index',array_merge($_POST,array('member_id'=>$vo['id'])))}">{$vo.name}</a></font>
                </div>
                <div><span class="glyphicon glyphicon-user text-primary" aria-hidden="true"><strong>积分：</strong></span><font class="giver{$key}">{$vo.totalnum}</font></div>
              </div>
            </div>
          </div>
      </volist>
<else/>
    <include file="Public:header" /> <include file="Public:navgation" />
    <div class="container-fluid main-content">
        <div class="page-title chart-container"> </div>
        <div class="row">
            <div class="col-md-12">
                <div class="widget-container">
                    <div class="heading"> <i class="icon-bar-chart"></i>积分排行 <a class="btn btn-default btn pull-right" data-toggle="modal" href="#myModal2" >筛选</a> </div>
                    <div class="widget-content padded modal-open">
                        <div>总分：<span class="text-primary">{$totalnum}</span></div>
                        <if condition="!isMobile()">
                            <table id="datatable-editable" class="table table-striped table-bordered dataTable">
                                <thead>
                                    <tr>
                                        <th>排名</th>
                                        <th>部门</th>
                                        <th>职员</th>
                                        <th>积分</th>
                                    </tr>
                                </thead>
                                <volist name="list" id="vo" empty="$empty">
                                    <tr class="data_list">
                                        <td>{$i}</td>
                                        <td>{$vo.groupname}</td>
                                        <td><a href="{:U('Integral_log/index',array_merge($_POST,array('member_id'=>$vo['id'])))}">{$vo.name}</a></td>
                                        <td>{$vo.totalnum}</td>
                                    </tr>
                                </volist>
                            </table>
                			<div class="text-right">{$pages}</div>
                        <else/>
                        	<div class="panel-group tbody" id="accordion"></div>
							<script>
                                $(".tbody").more({'address':location.href});
                            </script>
                        </if>
                        <!-- modal end and modal2 start-->
                        <div class="modal fade" id="myModal2" style="display: none;" aria-hidden="true">
                            <div class="modal-dialog">
                                <div class="modal-content">
                                    <form method="post" name="form" class="form-horizontal" novalidate action="__URL__/index">
                                        <div class="modal-header">
                                            <button aria-hidden="true" class="close" data-dismiss="modal" type="button">×</button>
                                            <h4 class="modal-title">规则筛选</h4>
                                        </div>
                                        <div class="modal-body">
                                            <fieldset>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2">职员部门</label>
                                                    <div  class="col-sm-5">
                                                        <select class="form-control groupid" name="groupid">
                                                            <option value="">选择部门</option>
                                                            <foreach name="grouplist" item="vo">
                                                                <option value="{$vo.id}">{$vo.title}</option>
                                                            </foreach>
                                                        </select>
                                                    </div>
                                                    <div class="col-sm-5">
                                                        <select class="form-control memberid" name="member_id">
                                                            <option value="">选择职员</option>
                                                        </select>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2">积分规则</label>
                                                    <div class="col-sm-5 typeevent">
                                                        <select class="form-control integralruletype">
                                                            <option value="">选择规则分类</option>
                                                            <foreach name="ruletypelist" item="vo">
                                                                <option value="{$vo.id}">{$vo.name}</option>
                                                            </foreach>
                                                        </select>
                                                    </div>
                                                    <div class="col-sm-5">
                                                        <select class="form-control integralrule" name="rule_id">
                                                            <option value="">选择规则</option>
                                                        </select>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2">积分类型</label>
                                                    <div  class="col-sm-5">
                                                        <select class="form-control" name="id">
                                                            <option value="">选择类型</option>
                                                            <foreach name="integraltypelist" item="vo">
                                                                <option value="{$vo.id}">{$vo.remark}</option>
                                                            </foreach>
                                                        </select>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2">奖/惩积分</label>
                                                    <div  class="col-sm-5">
                                                        <select class="form-control" name="rewardstype">
                                                            <option value="">选择分种</option>
                                                            <option value="1">加分</option>
                                                            <option value="2">减分</option>
                                                        </select>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="control-label col-sm-2">日期范围</label>
                                                    <div class="col-sm-5" style="z-index:1050;">
                                                        <input name="starttime" class="form-control" data-date-autoclose="true" data-date-format="dd-mm-yyyy" id="dpd1" placeholder="开始日期" type="text">
                                                    </div>
                                                    <div class="col-sm-5" style="z-index:1050;">
                                                        <input name="endtime" class="form-control" data-date-autoclose="true" data-date-format="dd-mm-yyyy" id="dpd2" placeholder="结束日期" type="text">
                                                    </div>
                                                </div>
                                            </fieldset>
                                        </div>
                                        <div class="modal-footer">
                                            <button class="btn btn-primary" type="submit">筛选</button>
                                            <button class="btn btn-default-outline" data-dismiss="modal" type="button">关闭</button>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                        <!-- modal end -->
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script> 
    <include file="Public:footer" />
</if>